import { get, post, del, put } from "../http";


// 创建广告
export const createAd = (data) =>
  post('/cms/ad/create', data)
// 修改广告
export const updateAd = (data) =>
  put('/cms/ad/update', data)
// 根据id查询
export const findByIdAd = (id) =>
  get(`/cms/ad/findById/${id}`)
// 按照条件查询全部
export const findAllAd = (current, size) =>
  get(`/cms/ad/findByCondition/${current}/${size}`)
// 删除广告
export const delAd = (id) =>
  del(`/cms/ad/delete/${id}`)



